<%@page import="com.clusterswisdom.horn.api.tmall.client.TmClient"%>
<%@page import="com.clusterswisdom.horn.api.tmall.config.TmallApplication"%>
<%@page import="com.clusterswisdom.horn.api.tmall.TmallInstance"%>
<%@page import="com.clusterswisdom.horn.api.tmall.config.TmallConfig"%>
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

<%
    String code = request.getParameter("code");
    TmClient client = TmallInstance.getInstance().getClient("alipay");
    String tokenUrl = client.initCode(code);
%>

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>获取支付宝的Token</title>
</head>
<body>
<%=tokenUrl%>
</body>
</html>